#include <iostream>
using namespace std;

signed main()
{
	string s;
	getline(cin,s);
	int num = 0;
	for(int i=0;i<s.size();i++){
		if(s[i]<='z'&&s[i]>='a')	num += s[i]-'a'+1;
		if(s[i]<='Z'&&s[i]>='A')	num += s[i]-'A'+1;
	}
	int ans0 = 0,ans1 = 0;
	while(num){
		if(num%2==0)	ans0++;
		else	ans1++;
		num/=2; 
	}
	cout<<ans0<<" "<<ans1;
	return 0;
}
